<template>
	<view>
		<view>
			<view style="padding: 10px;background-color: #fff;">
				<view>
					本次开票包含以下<text style="color: red;">{{list.length}}</text>个订单
				</view>
				<view style="color: #aaa;font-size: 24rpx;margin-top: 10px;">
					开票时间: {{data.createDate}}
				</view>
			</view>
		
			<view style="margin-top: 10px;background-color: #fff;">
				<view >
					<view  v-for="(item,index) in list" :key="index" style="padding: 10px;display: flex;justify-content: space-between;border-bottom: #eee 1px solid;">
						<view>
							<view>{{ item.orderCode }}</view>
							<!-- <view style="margin-top: 10px;">item.basCus.name</view> -->
							<view style="color: #aaa;font-size: 24rpx;margin-top: 10px;">
								{{ item.soMain.ddate }}
							</view>
						</view>
						<view style="display: flex;align-items: center;color: red;">{{item.isum}}元</view>
					</view>
				</view>
			</view>
		</view>
		
	</view>
</template>

<script>
	import util from '@/common/fire.js'
	export default {

		data() {
			return {
				list: [],
				data: {},
				
			}
		},
		onLoad(params) {
			let that = this
			const eventChannel = this.getOpenerEventChannel();
			eventChannel.on('acceptData', function(data) {
				console.log(data,'data==-------');
				that.data = data
				console.log(that.data,'this.data===');
				that.list = data.cusFpApplyRdsList
			})
		},
		methods: {
			confirm() {

			}
		},


	}
</script>

<style lang="scss" scoped>
	page {
		width: 100%;
		height: 98%;
		text-align: center;
		overflow: scroll;
	}

	.item-menu-image {
		width: 100px;
		height: 85px;
	}

	textarea {
		width: 100%;
		height: 260rpx;
		background-color: #f7f7f7;
		line-height: 60rpx;
		// margin: 40rpx auto;
		padding: 20rpx;
	}
</style>